package com.huluobo.higt4demo1911.utils.gift;

/**
 * Created by lc on 2022/4/29.
 */
public class GiftBean implements Comparable<GiftBean> {
    public String name;
    public String imgUrl;
    public int type;
    public int imgRes;

    //礼物展示的时长
    public long showTime;

    //添加到展示队列的时间
    public long createTime;

    //当前展示的状态  0 表示未展示,1为展示中,2为展示完成销毁
    public int status;

    public GiftBean(int imgRes) {
        this.imgRes = imgRes;
    }


    //通过实现Comparable来实现排序,根据展示的时间进行排序
    @Override
    public int compareTo(GiftBean o) {
        return (int) (createTime - o.createTime);
    }
}
